using System;
using System.Collections.Generic;
using System.Text;

namespace Colman.Rpg.Messaging
{
    /// <summary>
    /// Represents a request to sell an item from the player's inventory.
    /// </summary>
    [Serializable]
    public class SellItemRequest : RequestMessage
    {
        /// <summary>
        /// Creates a new instance of <see cref="SellItemRequest" />.
        /// </summary>
        /// <param name="item">Represents the item that is to be sold.</param>
        [System.Diagnostics.DebuggerStepThrough]
        public SellItemRequest(Item item)
        {
            this.item = item;
        }

        #region Item Item { get; } (item)
        private Item item;

        /// <summary>
        /// Gets the item that is to be sold.
        /// </summary>
        [System.ComponentModel.Description("Indicates the item that is to be sold.")]
        public Item Item
        {
            [System.Diagnostics.DebuggerStepThrough]
            get
            {
                return this.item;
            }
        }
        #endregion
    }
}
